<div class="row">
	<div class="col-xs-4 col-xs-offset-2">
        <fieldset>
            <legend>Đăng nhập</legend>
        </fieldset>
    </div>
    <div class="col-xs-4">
        <fieldset>
            <legend>Đăng ký thành viên</legend>
        </fieldset>
    </div>
</div>
<div class="row">
	<div class="col-xs-4 col-xs-offset-2">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>false,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'form'
	),
)); ?>

<div class="form-group">
    <?php echo $form->labelEx($login, 'username', array('class'=>'control-label')); ?>
    <?php echo $form->textField($login, 'username', array('class'=>'form-control input-sm')); ?>
    <?php echo $form->error($login, 'username'); ?>
</div>
<div class="form-group">
    <?php echo $form->labelEx($login, 'password', array('class'=>'control-label')); ?>
    <?php echo $form->passwordField($login, 'password', array('class'=>'form-control input-sm')); ?>
    <?php echo $form->error($login, 'password'); ?>
</div>
<div class="form-group">
    <div class="checkbox">
    	<label><?php echo $form->checkbox($login, 'rememberMe'); ?> Ghi nhớ đăng nhập?</label>
	</div>
</div>
<div class="form-group">
    <button type="submit" class="btn btn-danger">Đăng nhập</button>
</div>
<?php $this->endWidget(); ?>
	</div>
	<div class="col-xs-4 event-right">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'register-form',
	'enableClientValidation'=>false,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'form'
	),
)); ?>

<div class="form-group">
    <?php echo $form->labelEx($register, 'username', array('class'=>'control-label')); ?>
    <?php echo $form->textField($register, 'username', array('class'=>'form-control input-sm')); ?>
    <?php echo $form->error($register, 'username'); ?>
</div>
<div class="form-group">
    <?php echo $form->labelEx($register, 'email', array('class'=>'control-label')); ?>
    <?php echo $form->textField($register, 'email', array('class'=>'form-control input-sm')); ?>
    <?php echo $form->error($register, 'email'); ?>
</div>
<div class="form-group row">
	<div class="col-xs-7">
    	<?php echo $form->labelEx($register, 'fname', array('class'=>'control-label')); ?>
		<?php echo $form->textField($register, 'fname', array('class'=>'form-control input-sm')); ?>
        <?php echo $form->error($register, 'fname'); ?>
    </div>
    <div class="col-xs-5">
    	<?php echo $form->labelEx($register, 'lname', array('class'=>'control-label')); ?>
		<?php echo $form->textField($register, 'lname', array('class'=>'form-control input-sm')); ?>
        <?php echo $form->error($register, 'lname'); ?>
    </div>
</div>
<div class="form-group row">
	<div class="col-xs-7">
    	<?php echo $form->labelEx($register, 'dateofbirth', array('class'=>'control-label')); ?>
		<?php //echo $form->textField($register, 'dateofbirth', array('class'=>'form-control input-sm')); ?>
        <?php $this->widget('zii.widgets.jui.CJuiDatePicker',array(
			'model'=>$register,
			'attribute'=>'dateofbirth',
			'language'=>'vi',
			'options'=>array(
				'showAnim'=>'fold',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
				'dateFormat' => "dd-mm-yy",
				'maxDate'=>'-13Y',
				'yearRange'=>'1930:2000',
				'changeMonth'=>true,
      			'changeYear'=>true,
			),
			'htmlOptions'=>array(
				'class'=>'form-control input-sm',
			),
		)); ?>
        <?php echo $form->error($register, 'dateofbirth'); ?>
    </div>
    <div class="col-xs-5">
    	<?php echo $form->labelEx($register, 'gender', array('class'=>'control-label')); ?>
		<?php echo $form->dropDownList($register, 'gender', array('F'=>'Nam', 'M'=>'Nữ'), array('class'=>'form-control input-sm')); ?>
        <?php echo $form->error($register, 'gender'); ?>
    </div>
</div>
<div class="form-group">
    <?php echo $form->labelEx($register, 'password', array('class'=>'control-label')); ?>
    <?php echo $form->passwordField($register, 'password', array('class'=>'form-control input-sm')); ?>
    <?php echo $form->error($register, 'password'); ?>
</div>
<div class="form-group">
    <?php echo $form->labelEx($register, 'confirmPassword', array('class'=>'control-label')); ?>
    <?php echo $form->passwordField($register, 'confirmPassword', array('class'=>'form-control input-sm')); ?>
    <?php echo $form->error($register, 'confirmPassword'); ?>
</div>
	</div>
</div>
<div class="row">
    <div class="col-xs-4 col-xs-offset-6">
<div class="form-group">
	<p>Bằng việc click <strong class="text-info">đăng ký</strong> bạn đã đồng ý với <?php echo CHtml::link('Điều khoản sử dụng', array('/'), array('title'=>'Điều khoản sử dụng')); ?> của NEXTTOPEVENT.</p>
</div>
<div class="form-group">
    <button type="submit" class="btn btn-danger">Đăng ký</button>
</div>
<?php $this->endWidget(); ?>
    </div>
</div>